﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Helper.Attributes
{
    public enum IgnoreForMethod
    {
        Both = 0,
        Add = 1,
        Update = 2

    }

    [AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = false)]
    public class IgnoreForAttachmentAttribute : Attribute
    {
        public IgnoreForMethod IgnoreForMethod { get; set; }

        public IgnoreForAttachmentAttribute()
            : this(IgnoreForMethod.Both)
        {

        }

        public IgnoreForAttachmentAttribute(IgnoreForMethod ignoreForMethod)
        {
            this.IgnoreForMethod = ignoreForMethod;
        }

    }
}
